import 'package:flutter/material.dart';

import 'Appcolor.dart';

class TopUserItem extends StatelessWidget {
  final String text;
  final String tip;
  final String img;
  final String count1;
  final String count2;
  const TopUserItem({
    super.key,
    required this.text,
    required this.tip,
    required this.img,
    required this.count1,
    required this.count2,
  });

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      child: Container(
        height: 220,
        width: 160,
        margin: const EdgeInsets.only(right: 15),
        decoration:
            BoxDecoration(borderRadius: BorderRadius.circular(4), boxShadow: [
          BoxShadow(
              color: const Color(0xff000000).withOpacity(0.05),
              offset: const Offset(0, 14),
              blurRadius: 29)
        ]),
        child: Column(
          children: [
            Image.asset(
              img,
              scale: 0.8,
            ),
            Container(
              padding: const EdgeInsets.all(8),
              child: Column(
                crossAxisAlignment: CrossAxisAlignment.start,
                children: [
                  Text(
                    'Jeffrey Campbell',
                    style: TextStyle(
                        color: textColor2,
                        fontSize: 17,
                        fontWeight: FontWeight.w400),
                  ),
                  Text(
                    'Dhaka',
                    style: TextStyle(
                        color: textColor2,
                        fontSize: 10,
                        fontWeight: FontWeight.w400),
                  ),
                  const SizedBox(
                    height: 30,
                  ),
                  Row(
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: [
                      Row(
                        children: [
                          Image.asset('assets/TopUsersIcon1.png'),
                          const Text('85')
                        ],
                      ),
                      Row(
                        children: [
                          Image.asset('assets/TopUsersIcon2.png'),
                          const Text('1232')
                        ],
                      ),
                    ],
                  )
                ],
              ),
            ),
          ],
        ),
      ),
    );
  }
}
